package org.zl.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zl.mapper.ClazzInfoMapper;
import org.zl.pojo.ClazzInfo;
import org.zl.service.ClazzInfoService;

import java.util.List;

@Service
public class ClazzInfoServiceImpl implements ClazzInfoService {


    @Autowired
    private ClazzInfoMapper clazzInfoMapper;

    @Override
    public boolean save(ClazzInfo clazzInfo) {
        return clazzInfoMapper.save(clazzInfo);
    }

    @Override
    public boolean update(ClazzInfo clazzInfo) {
        return clazzInfoMapper.update(clazzInfo);
    }

    @Override
    public boolean delete(Integer id) {
        return clazzInfoMapper.delete(id);
    }

    @Override
    public ClazzInfo findClazz(Integer id) {
        return clazzInfoMapper.findClazz(id);
    }

    @Override
    public List<ClazzInfo> getAllClazzes() {
        return clazzInfoMapper.getAllClazzes();
    }
}
